import request from '@/utils/request'

// export function register (data) {
//   return request({
//     url: '/user/register',
//     method: 'post',
//     data
//   })
// }

export const register = data => request.post('/user/register', data)

export const login = data => request.post('/user/login', data)

export const getUser = () => request.get('/user/currentUser')
